/*	
 * Copyright (C) 2010  Mark Schyns
 * 
 * This file is part of Poker League Leaderboard.
 * 
 * Poker League Leaderboard is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Poker League Leaderboard is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Poker League Leaderboard.  If not, see <http://www.gnu.org/licenses/>.
*/

package com.gambit727.pokerleagueleaderboard;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Tournament {
	// Fields.
	private int tournamentId = 0;
	private String description = "";
	private Date dateTime = null;
	private double buyIn = 0.0;
	private int fieldSize;
	private double prizePool;
	private static List<Finish> finishes = new ArrayList<Finish>();
	
	// Constructors.
	public Tournament() {
		
	}
	
	public Tournament(int tournamentId, String description) {
		setTournamentId(tournamentId);
		setDescription(description);
	}

	// Methods.
	public void setTournamentId(int tournamentId) {
		this.tournamentId = tournamentId;
	}
	
	public int getTournamnetId() {
		return tournamentId;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDateTime (Date dateTime) {
		this.dateTime = dateTime;
	}
	
	public Date getDateTime() {
		return dateTime;
	}
	
	public void setBuyIn (double buyIn) {
		this.buyIn = buyIn;
	}
	
	public double getBuyIn () {
		return buyIn;
	}
	
	public void setFieldSize(int fieldSize) {
		this.fieldSize = fieldSize;
	}

	public int getFieldSize() {
		return fieldSize;
	}
	
	public void setPrizePool(double prizePool) {
		this.prizePool = prizePool;
	}

	public double getPrizePool() {
		return prizePool;
	}
	
	public void addFinish(Finish finish) {
		finishes.add(finish);
	}
	
}
